package ua.epam.java_bravo.controller.servletCommand;

import ua.epam.java_bravo.manager.ConfigurationManager;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: Linderhof
 * Date: 15.12.2010
 * Time: 13:23:35
 */
public class NoCommand implements ICommand{
    @Override
    public String execute(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        //If addressing ControllerServlet directly, redirect to login.jspx
        String page = ConfigurationManager.getInstance().
                getProperty(ConfigurationManager.LOGIN_PAGE_PATH);
        return page;
    }
}
